package com.pandy.seckill.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @description:
 * @author: panhong
 * @date: 2025/4/8
 */
@Data
public class SeckillSkuVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 标题
     */
    private String skuTitle;


    /**
     * 原价
     */
    private BigDecimal skuPrice;

    /**
     * 秒杀价
     */
    private BigDecimal costPrice;

    /**
     * 秒杀开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;

    /**
     * 秒杀结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;

    /**
     * 秒杀数量
     */
    private Integer stockCount;
}
